<template>
  <div>
    <!-- 通过vuex获取共享数据 -->
    <h2>{{$store.state.counter}}</h2>
    <h2>{{$store.getters.powerCounter}}</h2>
    <h2>{{$store.getters.more20stu}}</h2>
    <h2>{{$store.getters.more20stuLength}}</h2>
    <h2>{{$store.getters.moreAgeStu(25)}}</h2>
    <h2>{{$store.state.info}}</h2>
  </div>
</template>

<script>
  export default {
    name: 'HelloVuex'
  }
</script>

<style scoped>

</style>